#include <iostream>
using namespace std;

class rectangle{
    public:
    void rectangleSize(float w,float h){
        float s = w * h;
        cout<<"矩形的面积是："<<s<<endl;
    }
    void rectangleCircumference(float w,float h){
        float c = 2*(w+h);
        cout<<"矩形的周长是："<<c<<endl;
    }
    float w = 6.6;
    float h  = 7.7;
};
int main(int argc, char const *argv[])
{
    rectangle r1;
    r1.rectangleSize(r1.w,r1.h);
    r1.rectangleCircumference(r1.w,r1.h);

    cout<<"请输入矩形的宽："<<endl;
    cin>>r1.w;
    cout<<"请输入矩形的高:"<<endl;
    cin>>r1.h;
    r1.rectangleSize(r1.w,r1.h);
    return 0;
}
